home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 45
/
Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso
/
Aminet
/
dev
/
e
/
yaec.lha
/
examples
/
nodelist.e
< prev
next >
Wrap
Text File
|
2001-08-12
|
449b
|
34 lines
-> example of using the external linklib nodelist.o
EXTERN 'other/nodelist'
OBJECT node
next:PTR TO node
prev:PTR TO node
id:LONG
ENDOBJECT
OBJECT list OF node
first:PTR TO node
last:PTR TO node
ENDOBJECT
DEF l:list
PROC main()
DEF n:PTR TO node, a
FOR a := 10 TO 0 STEP -1
NEW n
n.id := a
AddOrd(l, n)
ENDFOR
Traverse(l, {bla})
ENDPROC
PROC bla()
PrintF('node.id=\d\n', A0::node.id)
ENDPROC